/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import org.compiere.util.Env;

/** Generated Model for zinvoice
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_zinvoice extends PO implements I_zinvoice, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20130121L;

    /** Standard Constructor */
    public X_zinvoice (Properties ctx, int zinvoice_ID, String trxName)
    {
      super (ctx, zinvoice_ID, trxName);
      /** if (zinvoice_ID == 0)
        {
			setzinvoice_ID (0);
        } */
    }

    /** Load Constructor */
    public X_zinvoice (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_zinvoice[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	/** Set consignee.
		@param consignee consignee	  */
	public void setconsignee (String consignee)
	{
		set_Value (COLUMNNAME_consignee, consignee);
	}

	/** Get consignee.
		@return consignee	  */
	public String getconsignee () 
	{
		return (String)get_Value(COLUMNNAME_consignee);
	}

	/** Set consigneeaddress.
		@param consigneeaddress consigneeaddress	  */
	public void setconsigneeaddress (String consigneeaddress)
	{
		set_Value (COLUMNNAME_consigneeaddress, consigneeaddress);
	}

	/** Get consigneeaddress.
		@return consigneeaddress	  */
	public String getconsigneeaddress () 
	{
		return (String)get_Value(COLUMNNAME_consigneeaddress);
	}

	/** Set consigneeiin.
		@param consigneeiin consigneeiin	  */
	public void setconsigneeiin (String consigneeiin)
	{
		set_Value (COLUMNNAME_consigneeiin, consigneeiin);
	}

	/** Get consigneeiin.
		@return consigneeiin	  */
	public String getconsigneeiin () 
	{
		return (String)get_Value(COLUMNNAME_consigneeiin);
	}

	/** Set Currency Type.
		@param CurrencyType Currency Type	  */
	public void setCurrencyType (String CurrencyType)
	{
		set_Value (COLUMNNAME_CurrencyType, CurrencyType);
	}

	/** Get Currency Type.
		@return Currency Type	  */
	public String getCurrencyType () 
	{
		return (String)get_Value(COLUMNNAME_CurrencyType);
	}

	/** Set Account Date.
		@param DateAcct 
		Accounting Date
	  */
	public void setDateAcct (Timestamp DateAcct)
	{
		set_Value (COLUMNNAME_DateAcct, DateAcct);
	}

	/** Get Account Date.
		@return Accounting Date
	  */
	public Timestamp getDateAcct () 
	{
		return (Timestamp)get_Value(COLUMNNAME_DateAcct);
	}

	/** Set daterecipient.
		@param daterecipient daterecipient	  */
	public void setdaterecipient (Timestamp daterecipient)
	{
		set_Value (COLUMNNAME_daterecipient, daterecipient);
	}

	/** Get daterecipient.
		@return daterecipient	  */
	public Timestamp getdaterecipient () 
	{
		return (Timestamp)get_Value(COLUMNNAME_daterecipient);
	}

	/** Set datesend.
		@param datesend datesend	  */
	public void setdatesend (Timestamp datesend)
	{
		set_Value (COLUMNNAME_datesend, datesend);
	}

	/** Get datesend.
		@return datesend	  */
	public Timestamp getdatesend () 
	{
		return (Timestamp)get_Value(COLUMNNAME_datesend);
	}

	/** Set details1.
		@param details1 details1	  */
	public void setdetails1 (String details1)
	{
		set_Value (COLUMNNAME_details1, details1);
	}

	/** Get details1.
		@return details1	  */
	public String getdetails1 () 
	{
		return (String)get_Value(COLUMNNAME_details1);
	}

	/** Set details2.
		@param details2 details2	  */
	public void setdetails2 (String details2)
	{
		set_Value (COLUMNNAME_details2, details2);
	}

	/** Get details2.
		@return details2	  */
	public String getdetails2 () 
	{
		return (String)get_Value(COLUMNNAME_details2);
	}

	/** Set details3.
		@param details3 details3	  */
	public void setdetails3 (String details3)
	{
		set_Value (COLUMNNAME_details3, details3);
	}

	/** Get details3.
		@return details3	  */
	public String getdetails3 () 
	{
		return (String)get_Value(COLUMNNAME_details3);
	}

	/** Set docno.
		@param docno docno	  */
	public void setdocno (int docno)
	{
		set_Value (COLUMNNAME_docno, Integer.valueOf(docno));
	}

	/** Get docno.
		@return docno	  */
	public int getdocno () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_docno);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set doctype.
		@param doctype doctype	  */
	public void setdoctype (boolean doctype)
	{
		set_Value (COLUMNNAME_doctype, Boolean.valueOf(doctype));
	}

	/** Get doctype.
		@return doctype	  */
	public boolean isdoctype () 
	{
		Object oo = get_Value(COLUMNNAME_doctype);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set fixconditionpayment.
		@param fixconditionpayment fixconditionpayment	  */
	public void setfixconditionpayment (String fixconditionpayment)
	{
		set_Value (COLUMNNAME_fixconditionpayment, fixconditionpayment);
	}

	/** Get fixconditionpayment.
		@return fixconditionpayment	  */
	public String getfixconditionpayment () 
	{
		return (String)get_Value(COLUMNNAME_fixconditionpayment);
	}

	/** Set fixconract.
		@param fixconract fixconract	  */
	public void setfixconract (String fixconract)
	{
		set_Value (COLUMNNAME_fixconract, fixconract);
	}

	/** Get fixconract.
		@return fixconract	  */
	public String getfixconract () 
	{
		return (String)get_Value(COLUMNNAME_fixconract);
	}

	/** Set fixcontractdate.
		@param fixcontractdate fixcontractdate	  */
	public void setfixcontractdate (Timestamp fixcontractdate)
	{
		set_Value (COLUMNNAME_fixcontractdate, fixcontractdate);
	}

	/** Get fixcontractdate.
		@return fixcontractdate	  */
	public Timestamp getfixcontractdate () 
	{
		return (Timestamp)get_Value(COLUMNNAME_fixcontractdate);
	}

	/** Set fixdateacct.
		@param fixdateacct fixdateacct	  */
	public void setfixdateacct (Timestamp fixdateacct)
	{
		set_Value (COLUMNNAME_fixdateacct, fixdateacct);
	}

	/** Get fixdateacct.
		@return fixdateacct	  */
	public Timestamp getfixdateacct () 
	{
		return (Timestamp)get_Value(COLUMNNAME_fixdateacct);
	}

	/** Set fixdocdateacct.
		@param fixdocdateacct fixdocdateacct	  */
	public void setfixdocdateacct (Timestamp fixdocdateacct)
	{
		set_Value (COLUMNNAME_fixdocdateacct, fixdocdateacct);
	}

	/** Get fixdocdateacct.
		@return fixdocdateacct	  */
	public Timestamp getfixdocdateacct () 
	{
		return (Timestamp)get_Value(COLUMNNAME_fixdocdateacct);
	}

	/** Set fixdocno.
		@param fixdocno fixdocno	  */
	public void setfixdocno (int fixdocno)
	{
		set_Value (COLUMNNAME_fixdocno, Integer.valueOf(fixdocno));
	}

	/** Get fixdocno.
		@return fixdocno	  */
	public int getfixdocno () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_fixdocno);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set fixno.
		@param fixno fixno	  */
	public void setfixno (int fixno)
	{
		set_Value (COLUMNNAME_fixno, Integer.valueOf(fixno));
	}

	/** Get fixno.
		@return fixno	  */
	public int getfixno () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_fixno);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set fixpoint.
		@param fixpoint fixpoint	  */
	public void setfixpoint (String fixpoint)
	{
		set_Value (COLUMNNAME_fixpoint, fixpoint);
	}

	/** Get fixpoint.
		@return fixpoint	  */
	public String getfixpoint () 
	{
		return (String)get_Value(COLUMNNAME_fixpoint);
	}

	/** Set fixrecipient.
		@param fixrecipient fixrecipient	  */
	public void setfixrecipient (String fixrecipient)
	{
		set_Value (COLUMNNAME_fixrecipient, fixrecipient);
	}

	/** Get fixrecipient.
		@return fixrecipient	  */
	public String getfixrecipient () 
	{
		return (String)get_Value(COLUMNNAME_fixrecipient);
	}

	/** Set fixrecipientaddress.
		@param fixrecipientaddress fixrecipientaddress	  */
	public void setfixrecipientaddress (String fixrecipientaddress)
	{
		set_Value (COLUMNNAME_fixrecipientaddress, fixrecipientaddress);
	}

	/** Get fixrecipientaddress.
		@return fixrecipientaddress	  */
	public String getfixrecipientaddress () 
	{
		return (String)get_Value(COLUMNNAME_fixrecipientaddress);
	}

	/** Set fixrecipientiin.
		@param fixrecipientiin fixrecipientiin	  */
	public void setfixrecipientiin (String fixrecipientiin)
	{
		set_Value (COLUMNNAME_fixrecipientiin, fixrecipientiin);
	}

	/** Get fixrecipientiin.
		@return fixrecipientiin	  */
	public String getfixrecipientiin () 
	{
		return (String)get_Value(COLUMNNAME_fixrecipientiin);
	}

	/** Set fixrecipientserial.
		@param fixrecipientserial fixrecipientserial	  */
	public void setfixrecipientserial (String fixrecipientserial)
	{
		set_Value (COLUMNNAME_fixrecipientserial, fixrecipientserial);
	}

	/** Get fixrecipientserial.
		@return fixrecipientserial	  */
	public String getfixrecipientserial () 
	{
		return (String)get_Value(COLUMNNAME_fixrecipientserial);
	}

	/** Set fixrecipientserialno.
		@param fixrecipientserialno fixrecipientserialno	  */
	public void setfixrecipientserialno (int fixrecipientserialno)
	{
		set_Value (COLUMNNAME_fixrecipientserialno, Integer.valueOf(fixrecipientserialno));
	}

	/** Get fixrecipientserialno.
		@return fixrecipientserialno	  */
	public int getfixrecipientserialno () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_fixrecipientserialno);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set fixrecipientstatus.
		@param fixrecipientstatus fixrecipientstatus	  */
	public void setfixrecipientstatus (BigDecimal fixrecipientstatus)
	{
		set_Value (COLUMNNAME_fixrecipientstatus, fixrecipientstatus);
	}

	/** Get fixrecipientstatus.
		@return fixrecipientstatus	  */
	public BigDecimal getfixrecipientstatus () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_fixrecipientstatus);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set fixsupplier.
		@param fixsupplier fixsupplier	  */
	public void setfixsupplier (String fixsupplier)
	{
		set_Value (COLUMNNAME_fixsupplier, fixsupplier);
	}

	/** Get fixsupplier.
		@return fixsupplier	  */
	public String getfixsupplier () 
	{
		return (String)get_Value(COLUMNNAME_fixsupplier);
	}

	/** Set fixsupplieraddress.
		@param fixsupplieraddress fixsupplieraddress	  */
	public void setfixsupplieraddress (String fixsupplieraddress)
	{
		set_Value (COLUMNNAME_fixsupplieraddress, fixsupplieraddress);
	}

	/** Get fixsupplieraddress.
		@return fixsupplieraddress	  */
	public String getfixsupplieraddress () 
	{
		return (String)get_Value(COLUMNNAME_fixsupplieraddress);
	}

	/** Set fixsuppliererialno.
		@param fixsuppliererialno fixsuppliererialno	  */
	public void setfixsuppliererialno (int fixsuppliererialno)
	{
		set_Value (COLUMNNAME_fixsuppliererialno, Integer.valueOf(fixsuppliererialno));
	}

	/** Get fixsuppliererialno.
		@return fixsuppliererialno	  */
	public int getfixsuppliererialno () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_fixsuppliererialno);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set fixsupplieriin.
		@param fixsupplieriin fixsupplieriin	  */
	public void setfixsupplieriin (String fixsupplieriin)
	{
		set_Value (COLUMNNAME_fixsupplieriin, fixsupplieriin);
	}

	/** Get fixsupplieriin.
		@return fixsupplieriin	  */
	public String getfixsupplieriin () 
	{
		return (String)get_Value(COLUMNNAME_fixsupplieriin);
	}

	/** Set fixsupplierserial.
		@param fixsupplierserial fixsupplierserial	  */
	public void setfixsupplierserial (String fixsupplierserial)
	{
		set_Value (COLUMNNAME_fixsupplierserial, fixsupplierserial);
	}

	/** Get fixsupplierserial.
		@return fixsupplierserial	  */
	public String getfixsupplierserial () 
	{
		return (String)get_Value(COLUMNNAME_fixsupplierserial);
	}

	/** Set fixsupplierstatus.
		@param fixsupplierstatus fixsupplierstatus	  */
	public void setfixsupplierstatus (BigDecimal fixsupplierstatus)
	{
		set_Value (COLUMNNAME_fixsupplierstatus, fixsupplierstatus);
	}

	/** Get fixsupplierstatus.
		@return fixsupplierstatus	  */
	public BigDecimal getfixsupplierstatus () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_fixsupplierstatus);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set operator.
		@param operator operator	  */
	public void setoperator (String operator)
	{
		set_Value (COLUMNNAME_operator, operator);
	}

	/** Get operator.
		@return operator	  */
	public String getoperator () 
	{
		return (String)get_Value(COLUMNNAME_operator);
	}

	/** Set shipper.
		@param shipper shipper	  */
	public void setshipper (String shipper)
	{
		set_Value (COLUMNNAME_shipper, shipper);
	}

	/** Get shipper.
		@return shipper	  */
	public String getshipper () 
	{
		return (String)get_Value(COLUMNNAME_shipper);
	}

	/** Set shipperaddress.
		@param shipperaddress shipperaddress	  */
	public void setshipperaddress (String shipperaddress)
	{
		set_Value (COLUMNNAME_shipperaddress, shipperaddress);
	}

	/** Get shipperaddress.
		@return shipperaddress	  */
	public String getshipperaddress () 
	{
		return (String)get_Value(COLUMNNAME_shipperaddress);
	}

	/** Set shipperiin.
		@param shipperiin shipperiin	  */
	public void setshipperiin (String shipperiin)
	{
		set_Value (COLUMNNAME_shipperiin, shipperiin);
	}

	/** Get shipperiin.
		@return shipperiin	  */
	public String getshipperiin () 
	{
		return (String)get_Value(COLUMNNAME_shipperiin);
	}

	/** Set sign1.
		@param sign1 sign1	  */
	public void setsign1 (String sign1)
	{
		set_Value (COLUMNNAME_sign1, sign1);
	}

	/** Get sign1.
		@return sign1	  */
	public String getsign1 () 
	{
		return (String)get_Value(COLUMNNAME_sign1);
	}

	/** Set sign2.
		@param sign2 sign2	  */
	public void setsign2 (String sign2)
	{
		set_Value (COLUMNNAME_sign2, sign2);
	}

	/** Get sign2.
		@return sign2	  */
	public String getsign2 () 
	{
		return (String)get_Value(COLUMNNAME_sign2);
	}

	/** Set Status.
		@param Status 
		Status of the currently running check
	  */
	public void setStatus (String Status)
	{
		set_Value (COLUMNNAME_Status, Status);
	}

	/** Get Status.
		@return Status of the currently running check
	  */
	public String getStatus () 
	{
		return (String)get_Value(COLUMNNAME_Status);
	}

	/** Set zinvoice.
		@param zinvoice_ID zinvoice	  */
	public void setzinvoice_ID (int zinvoice_ID)
	{
		if (zinvoice_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_zinvoice_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_zinvoice_ID, Integer.valueOf(zinvoice_ID));
	}

	/** Get zinvoice.
		@return zinvoice	  */
	public int getzinvoice_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_zinvoice_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_zuser getzuser() throws RuntimeException
    {
		return (I_zuser)MTable.get(getCtx(), I_zuser.Table_Name)
			.getPO(getzuser_ID(), get_TrxName());	}

	/** Set zuser.
		@param zuser_ID zuser	  */
	public void setzuser_ID (int zuser_ID)
	{
		if (zuser_ID < 1) 
			set_Value (COLUMNNAME_zuser_ID, null);
		else 
			set_Value (COLUMNNAME_zuser_ID, Integer.valueOf(zuser_ID));
	}

	/** Get zuser.
		@return zuser	  */
	public int getzuser_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_zuser_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set zuseridto.
		@param zuseridto zuseridto	  */
	public void setzuseridto (int zuseridto)
	{
		set_Value (COLUMNNAME_zuseridto, Integer.valueOf(zuseridto));
	}

	/** Get zuseridto.
		@return zuseridto	  */
	public int getzuseridto () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_zuseridto);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
}